package com.ytktt.study.week5.task2.java.config;

import com.ytktt.study.week5.task2.java.component.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Student配置类
 *
 * @author ytk
 */
@Configuration
public class StudentConfig {

    @Bean
    public Student student() {
        Student student = new Student();
        student.setId(1L);
        student.setName("ytk");
        return student;
    }
}
